Produced by Araxis Merge on 2021-05-13 09:09:06 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | /Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html | head.phtml | 2019-12-13 07:51:06 +0000 |
| 2 | /Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/html | head.phtml | 2021-04-23 07:37:20 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 23 | 216 |
| Changed | 10 | 28 |
| Inserted | 3 | 31 |
| Removed | 10 | 44 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | 2 | $_helper = $this->helper('Smartwave\Porto\Helper\Cssconfig'); | |||
| 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 3 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 4 | $_redirect_cart = $porto_helper->getConfig('checkout/cart/redirect_to_cart'); | |||||
| 4 | ?> | 5 | ?> | |||
| 5 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | 6 | <?php //Include Google fonts character subsets (such as extended latin, cyrillic) | |||
| 6 | $d = $this->getConfig('porto_design'); | 7 | $d = $this->getConfig('porto_design'); | |||
| 7 | $charSubset = ""; | 8 | $charSubset = ""; | |||
| 8 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | 9 | if (isset($d['font']['char_latin_ext']) && $d['font']['char_latin_ext']==1 ) | |||
| 9 | $charSubset .= ',latin-ext'; | 10 | $charSubset .= ',latin-ext'; | |||
| 10 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | 11 | if (isset($d['font']['char_subset']) && $d['font']['char_subset']) | |||
| 11 | $charSubset .= ','.$d['font']['char_subset']; | 12 | $charSubset .= ','.$d['font']['char_subset']; | |||
| 12 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | 13 | $font_sizes = "%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic"; | |||
| 13 | ?> | 14 | ?> | |||
| 14 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | 15 | <?php if (isset($d['font']['custom']) && $d['font']['custom'] && $d['font']['font_family'] == 'google'): ?> | |||
| 15 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | 16 | <link rel="stylesheet" href='//fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', $d['font']['google_font_family']).$font_sizes; echo $charSubset; ?>' type='text/css' /> | |||
| 16 | <?php else: ?> | 17 | <?php else: ?> | |||
| 17 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | 18 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | |||
| 18 | <?php endif;?> | 19 | <?php endif;?> | |||
| 19 | <link href="//fonts.googleapis.com/css?family=Oswald:300,400, | 20 | <link href="//fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet"> | |||
| 20 | <link href="//fonts.googleapis.com/css?family=Poppins: | 21 | <link href="//fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800" rel="stylesheet"> | |||
| 21 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | 22 | <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300%2C300italic%2C400%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&v1&subset=latin%2Clatin-ext" type="text/css" media="screen"/> | |||
| 22 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | 23 | <?php if ($this->getConfig('porto_settings/optimization/bootstrap')): ?> | |||
| 23 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.min.css'; ?>"> | 24 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.min.css'; ?>"> | |||
| 24 | <?php else: ?> | 25 | <?php else: ?> | |||
| 25 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.optimized.min.css'; ?>"> | 26 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'bootstrap/css/bootstrap.optimized.min.css'; ?>"> | |||
| 26 | <?php endif; ?> | 27 | <?php endif; ?> | |||
| 27 | <?php if ($this->getConfig('porto_settings/optimization/animate')): ?> | 28 | <?php if ($this->getConfig('porto_settings/optimization/animate')): ?> | |||
| 28 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | 29 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.css'; ?>"> | |||
| 29 | <?php else: ?> | 30 | <?php else: ?> | |||
| 30 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | 31 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/animate.optimized.css'; ?>"> | |||
| 31 | <?php endif; ?> | 32 | <?php endif; ?> | |||
| 32 | <?php | 33 | <?php | |||
| 33 | $header_type = $this->getConfig('porto_settings/header/header_type'); | 34 | $header_type = $this->getConfig('porto_settings/header/header_type'); | |||
| 34 | ?> | 35 | ?> | |||
| 35 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.css'; ?>"> | 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/header/type'.$header_type.'.css'; ?>"> | |||
| 36 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.css'; ?>"> | 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getPortoWebDir().'css/custom.css'; ?>"> | |||
| 37 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | 38 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getDesignFile()?>"> | |||
| 38 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | 39 | <link rel="stylesheet" type="text/css" media="all" href="<?php echo $_helper->getSettingsFile()?>"> | |||
| 39 | <script type="text/javascript"> | 40 | <script type="text/javascript"> | |||
| 41 | var redirect_cart = false; | |||||
| 42 | <?php if($_redirect_cart):?> | |||||
| 43 | redirect_cart = true; | |||||
| 44 | <?php endif;?> | |||||
| 40 | var porto_config = { | 45 | var porto_config = { | |||
| 41 | paths: { | 46 | paths: { | |||
| 42 | 'parallax': 'js/jquery.parallax.min', | 47 | 'parallax': 'js/jquery.parallax.min', | |||
| 43 | 'owlcarousel': 'owl.carousel/owl.carousel', | 48 | 'owlcarousel': 'owl.carousel/owl.carousel', | |||
| 44 | 'owlcarousel_thumbs': 'owl.carousel/owl.carousel2.thumbs', | |||||
| 45 | 'imagesloaded': 'Smartwave_Porto/js/imagesloaded', | |||||
| 46 | 'packery': 'Smartwave_Porto/js/packery.pkgd', | |||||
| 47 | 'floatelement': 'js/jquery.floatelement' | 49 | 'floatelement': 'js/jquery.floatelement' | |||
| 48 | }, | 50 | }, | |||
| 49 | shim: { | 51 | shim: { | |||
| 50 | 'parallax': { | |||||
| 51 | deps: ['jquery'] | |||||
| 52 | }, | |||||
| 53 | 'owlcarousel': { | 52 | 'owlcarousel': { | |||
| 54 | deps: ['jquery'] | 53 | deps: ['jquery'] | |||
| 55 | }, | 54 | }, | |||
| 56 | 'owlcarousel_thumbs': { | 55 | 'owlcarousel_thumbs': { | |||
| 57 | deps: ['jquery','owlcarousel'] | 56 | deps: ['jquery','owlcarousel'] | |||
| 58 | }, | |||||
| 59 | 'packery': { | |||||
| 60 | deps: ['jquery','imagesloaded'] | |||||
| 61 | }, | 57 | }, | |||
| 62 | 'floatelement': { | 58 | 'floatelement': { | |||
| 63 | deps: ['jquery'] | 59 | deps: ['jquery'] | |||
| 64 | } | 60 | } | |||
| 65 | } | 61 | } | |||
| 66 | }; | 62 | }; | |||
| 67 | 63 | |||||
| 68 | require.config(porto_config); | 64 | require.config(porto_config); | |||
| 69 | </script> | 65 | </script> | |||
| 70 | <script type="text/javascript"> | 66 | <script type="text/javascript"> | |||
| 71 | require([ | 67 | require([ | |||
| 72 | 'jquery' | 68 | 'jquery' | |||
| 73 | ], function ($) { | 69 | ], function ($) { | |||
| 74 | $(document).ready(function(){ | |||||
| 75 | $(".drop-menu > a").off("click").on("click", function(){ | |||||
| 76 | if($(this).parent().children(".nav-sections").hasClass("visible")) { | |||||
| 77 | $(this).parent().children(".nav-sections").removeClass("visible"); | |||||
| 78 | $(this).removeClass("active"); | |||||
| 79 | } | |||||
| 80 | else { | |||||
| 81 | $(this).parent().children(".nav-sections").addClass("visible"); | |||||
| 82 | $(this).addClass("active"); | |||||
| 83 | } | |||||
| 84 | }); | |||||
| 85 | }); | |||||
| 86 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | 70 | <?php if ($this->getConfig('porto_settings/header/sticky_header')): ?> | |||
| 87 | var scrolled = false; | 71 | var scrolled = false; | |||
| 88 | $(window).scroll(function(){ | 72 | $(window).scroll(function(){ | |||
| 89 | if(!$('.page-header').hasClass('type10')) { | 73 | if($(window).width()>=992){ | |||
| 90 | if($(window).width()>=768){ | |||||
| 91 | if(160<$(window).scrollTop() && !scrolled){ | 74 | if(160<$(window).scrollTop() && !scrolled){ | |||
| 92 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | 75 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | |||
| 93 | $('.page-header').addClass("sticky-header"); | 76 | $('.page-header').addClass("sticky-header"); | |||
| 94 | scrolled = true; | 77 | scrolled = true; | |||
| 95 | if((!$(".page-header").hasClass("type12")) && (!$(".page-header").hasClass("type23")) && (!$(".page-header").hasClass("type25")) && (!$(".page-header").hasClass("type26"))) { | 78 | if( | |||
| 96 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | 79 | $('.page-header .minicart-wrapper').after('<div class="minicart-place hide"></div>'); | |||
| 97 | ||||||
| 98 | if($(".page-header").hasClass("type2")) | |||||
| 99 | $('.page-header .navigation').append($('header.page-header.type2 a.action.my-wishlist').detach()); | |||||
| 100 | ||||||
| 101 | var minicart = $('.page-header .minicart-wrapper').detach(); | 80 | var minicart = $('.page-header .minicart-wrapper').detach(); | |||
| 102 | if($(".page-header").hasClass("type8")) | |||||
| 103 | $('.page-header .menu-wrapper').append(minicart); | |||||
| 104 | else | |||||
| 105 | $('.page-header .navigation').append(minicart); | 81 | $('.page-header .navigation').append(minicart); | |||
| 106 | 82 | |||||
| 107 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 83 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 108 | var logo_image = $('<div>').append($('.page-header .header > .logo').clone()).html(); | 84 | var logo_image = $('<div>').append($('.page-header .header | |||
| 109 | if($(".page-header").hasClass("type27")) | |||||
| 110 | logo_image = $('<div>').append($('.page-header .header .header-main-left > .logo').clone()).html(); | |||||
| 111 | if($(".page-header").hasClass("type8")) | |||||
| 112 | $('.page-header .menu-wrapper').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | |||||
| 113 | else | |||||
| 114 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | 85 | $('.page-header .navigation').prepend('<div class="sticky-logo">'+logo_image+'</div>'); | |||
| 115 | <?php endif; ?> | 86 | <?php endif; ?> | |||
| 116 | } else { | |||||
| 117 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||||
| 118 | $('.page-header.type12 .logo').append('<span class="sticky-logo"><img src="" alt=""/></span>'); | |||||
| 119 | $('.page-header .logo > img').addClass("hide"); | |||||
| 120 | <?php endif; ?> | |||||
| 121 | } | 87 | } | |||
| 122 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 88 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 123 | <?php | 89 | <?php | |||
| 124 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | 90 | if($logo_src = $this->getConfig('porto_settings/header/sticky_header_logo_src')){ | |||
| 125 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | 91 | $folderName = \Smartwave\Porto\Model\Config\Backend\Image\Stickylogo::UPLOAD_DIR; | |||
| 126 | $path = $folderName . '/' . $logo_src; | 92 | $path = $folderName . '/' . $logo_src; | |||
| 127 | $imageUrl = $porto_helper->getBaseUrl() . $path; | 93 | $imageUrl = $porto_helper->getBaseUrl() . $path; | |||
| 128 | ?> | 94 | ?> | |||
| 129 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | 95 | $(".sticky-logo img").attr("src","<?php echo $imageUrl; ?>"); | |||
| 130 | <?php | 96 | <?php | |||
| 131 | } | 97 | } | |||
| 132 | ?> | 98 | ?> | |||
| 133 | <?php endif; ?> | 99 | <?php endif; ?> | |||
| 134 | } | 100 | }126 | |||
| 135 | if(160>=$(window).scrollTop() && scrolled){ | 101 | if(160>=$(window).scrollTop() && scrolled){ | |||
| 136 | $('.page-header.sticky-header').css("height",'auto'); | 102 | $('.page-header.sticky-header').css("height",'auto'); | |||
| 137 | $('.page-header').removeClass("sticky-header"); | 103 | $('.page-header').removeClass("sticky-header"); | |||
| 138 | scrolled = false; | 104 | scrolled = false; | |||
| 139 | if((!$(".page-header").hasClass("type12")) && (!$(".page-header").hasClass("type23")) && (!$(".page-header").hasClass("type25")) && (!$(".page-header").hasClass("type26"))) { | 105 | if( | |||
| 140 | var minicart; | 106 | var minicart; | |||
| 141 | if($(".page-header").hasClass("type8")) | |||||
| 142 | minicart = $('.page-header .menu-wrapper .minicart-wrapper').detach(); | |||||
| 143 | else | |||||
| 144 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | 107 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||
| 145 | $('.minicart-place').after(minicart); | 108 | $('.minicart-place').after(minicart); | |||
| 146 | $('.minicart-place').remove(); | 109 | $('.minicart-place').remove(); | |||
| 147 | if($(".page-header").hasClass("type2")) | |||||
| 148 | $('.page-header .block.block-search').before($('.page-header .navigation a.action.my-wishlist').detach()); | |||||
| 149 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | 110 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||
| 150 | } | 111 | ||||
| 151 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | 112 | <?php if ($this->getConfig('porto_settings/header/sticky_header_logo')): ?> | |||
| 152 | if($(".page-header").hasClass("type8")) | |||||
| 153 | $('.page-header .menu-wrapper > .sticky-logo').remove(); | |||||
| 154 | else if($(".page-header").hasClass("type12")) { | |||||
| 155 | $('.page-header .sticky-logo').remove(); | |||||
| 156 | $('.page-header .logo > img').removeClass("hide");; | |||||
| 157 | } else | |||||
| 158 | $('.page-header .navigation > .sticky-logo').remove(); | 113 | $('.page-header .navigation > .sticky-logo').remove(); | |||
| 159 | <?php endif; ?> | 114 | <?php endif; ?> | |||
| 160 | } | 115 | } | |||
| 161 | } | 116 | } | |||
| 162 | } | 117 | } | |||
| 118 | if($('body').hasClass('mobile-sticky')) { | |||||
| 119 | if($(window).width()<=991){ | |||||
| 120 | if(130<$(window).scrollTop() && !scrolled){ | |||||
| 121 | $('.page-header:not(.sticky-header)').css("height",$('.page-header:not(.sticky-header)').height()+'px'); | |||||
| 122 | $('.page-header').addClass("sticky-header"); | |||||
| 123 | scrolled = true; | |||||
| 124 | } | |||||
| 125 | if(130>=$(window).scrollTop() && scrolled){ | |||||
| 126 | $('.page-header.sticky-header').css("height",'auto'); | |||||
| 127 | $('.page-header').removeClass("sticky-header"); | |||||
| 128 | scrolled = false; | |||||
| 129 | } | |||||
| 130 | } | |||||
| 131 | } | |||||
| 132 | }); | |||||
| 133 | $(window).resize(function(){ | |||||
| 134 | var b_w = $(window).width(); | |||||
| 135 | if(b_w <= 991){ | |||||
| 136 | if($('.page-header .navigation .minicart-wrapper').length > 0) { | |||||
| 137 | var minicart; | |||||
| 138 | minicart = $('.page-header .navigation .minicart-wrapper').detach(); | |||||
| 139 | $('.minicart-place').after(minicart); | |||||
| 140 | $('.minicart-place').remove(); | |||||
| 141 | $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); | |||||
| 142 | } | |||||
| 143 | } | |||||
| 163 | }); | 144 | }); | |||
| 164 | <?php endif; ?> | 145 | <?php endif; ?> | |||
| 165 | }); | 146 | }); | |||
| 166 | </script> | 147 | </script> | |||
| 167 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | 148 | <?php if($this->getConfig('porto_settings/general/smartlayers')): ?> | |||
| 168 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | 149 | <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-58378513496862c5"></script> | |||
| 169 | <?php endif; ?> | 150 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.